# Copyright (C) 2012-2021  The Bochs Project
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA

# Makefile for the iodev/network component of bochs


.SUFFIXES: .cc

prefix          = /usr/local
exec_prefix     = ${prefix}
srcdir          = .

bindir          = ${exec_prefix}/bin
libdir          = ${exec_prefix}/lib
datarootdir     = ${prefix}/share
mandir          = ${datarootdir}/man
man1dir         = $(mandir)/man1
man5dir         = $(mandir)/man5
docdir          = $(datarootdir)/doc/bochs
sharedir        = $(datarootdir)/bochs
top_builddir    = ..
top_srcdir      = ../..

SHELL = /bin/sh



CXX = g++
CXXFLAGS = $(BX_INCDIRS) -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   -I/usr/include/SDL2 -D_REENTRANT

LDFLAGS = 
LIBS = 
RANLIB = ranlib
PLUGIN_PATH=${exec_prefix}/lib
top_builddir    = ../..
LIBTOOL=$(SHELL) $(top_builddir)/libtool
WIN32_DLL_IMPORT_LIBRARY=../../

NETLOW_OBJS = 

NETMOD_LINK_OPTS = -lws2_32 -liphlpapi
NETMOD_LINK_OPTS_VCPP = ws2_32.lib iphlpapi.lib

SLIRP_OBJS = \
	slirp/arp_table.o \
	slirp/bootp.o \
	slirp/cksum.o \
	slirp/compat.o \
	slirp/dnssearch.o \
	slirp/if.o \
	slirp/ip_icmp.o \
	slirp/ip_input.o \
	slirp/ip_output.o \
	slirp/mbuf.o \
	slirp/misc.o \
	slirp/sbuf.o \
	slirp/slirp.o \
	slirp/socket.o \
	slirp/tcp_input.o \
	slirp/tcp_output.o \
	slirp/tcp_subr.o \
	slirp/tcp_timer.o \
	slirp/tftp.o \
	slirp/udp.o

BX_INCDIRS = -I.. -I../.. -I$(srcdir)/.. -I$(srcdir)/../.. -I../../instrument/stubs -I$(srcdir)/../../instrument/stubs
LOCAL_CXXFLAGS = $(MCH_CFLAGS)

OBJS_THAT_CANNOT_BE_PLUGINS = netmod.o

OBJS_THAT_CAN_BE_PLUGINS = \
   \
  $(NETLOW_OBJS)

OBJS_THAT_SUPPORT_OTHER_PLUGINS = \
  netutil.o \
  $(SLIRP_OBJS)

NONPLUGIN_OBJS = $(OBJS_THAT_CANNOT_BE_PLUGINS) $(OBJS_THAT_CAN_BE_PLUGINS) $(OBJS_THAT_SUPPORT_OTHER_PLUGINS)
PLUGIN_OBJS = 
NETDEV_DLL_TARGETS = 

all: libnetwork.a

plugins: 

plugins_gcc: $(PLUGIN_OBJS:%.o=libbx_%.la)

plugins_msvc: $(NETDEV_DLL_TARGETS) bx_eth_null.dll bx_eth_slirp.dll \
	bx_eth_socket.dll bx_eth_vnet.dll bx_eth_win32.dll

libnetwork.a: $(NONPLUGIN_OBJS)
	rm -f  libnetwork.a
	ar rv $@ $(NONPLUGIN_OBJS)
	$(RANLIB) libnetwork.a

# standard compile rule for C++ files
.cc.o:
	$(CXX) -c  $(CXXFLAGS) $(LOCAL_CXXFLAGS) $< -o $@

##### building plugins with libtool
%.lo: %.cc
	$(LIBTOOL) --mode=compile --tag CXX $(CXX) -c $(CXXFLAGS) $(LOCAL_CXXFLAGS) $< -o $@

libbx_%.la: %.lo
	$(LIBTOOL) --mode=link --tag CXX $(CXX) -module $< -o $@ -rpath $(PLUGIN_PATH)

# special link rules for plugins that require more than one object file
libbx_eth_slirp.la: eth_slirp.lo $(SLIRP_OBJS:.o=.lo)
	$(LIBTOOL) --mode=link --tag CXX $(CXX) -module eth_slirp.lo $(SLIRP_OBJS:.o=.lo) -o libbx_eth_slirp.la -rpath $(PLUGIN_PATH)

libbx_eth_vnet.la: eth_vnet.lo netutil.lo
	$(LIBTOOL) --mode=link --tag CXX $(CXX) -module eth_vnet.lo netutil.lo -o libbx_eth_vnet.la -rpath $(PLUGIN_PATH)

#### building DLLs for win32 (Cygwin and MinGW/MSYS)
bx_%.dll: %.o
	$(CXX) $(CXXFLAGS) -shared -o $@ $< $(WIN32_DLL_IMPORT_LIBRARY)

# special link rules for plugins with Cygwin, MinGW/MSYS and MSVC nmake
bx_eth_null.dll: eth_null.o
	 eth_null.o $(WIN32_DLL_IMPORT_LIBRARY)

bx_eth_slirp.dll: eth_slirp.o $(SLIRP_OBJS)
	 eth_slirp.o $(SLIRP_OBJS) $(WIN32_DLL_IMPORT_LIBRARY) $(NETMOD_LINK_OPTS)

bx_eth_socket.dll: eth_socket.o
	 eth_socket.o $(WIN32_DLL_IMPORT_LIBRARY) $(NETMOD_LINK_OPTS)

bx_eth_vnet.dll: eth_vnet.o netutil.o
	 eth_vnet.o netutil.o $(WIN32_DLL_IMPORT_LIBRARY) $(NETMOD_LINK_OPTS)

bx_eth_win32.dll: eth_win32.o
	 eth_win32.o $(WIN32_DLL_IMPORT_LIBRARY) $(NETMOD_LINK_OPTS)

bx_e1000.dll: e1000.o
	 e1000.o $(WIN32_DLL_IMPORT_LIBRARY)

bx_ne2k.dll: ne2k.o
	 ne2k.o $(WIN32_DLL_IMPORT_LIBRARY)

##### end DLL section

clean:
	rm -f  -rf .libs slirp/.libs *.lo slirp/*.lo *.o slirp/*.o *.la *.a *.dll *.exp *.lib

dist-clean: clean
	rm -f  Makefile

###########################################
# dependencies generated by
#  gcc -MM -I.. -I../.. -I../../instrument/stubs *.cc | sed -e 's/\.cc/.cc/g'
#  gcc -MM -I.. -I../.. -I../../instrument/stubs slirp/*.cc | \
#     sed -e 's/^[^ ]/slirp\/&/g' -e 's/\.cc/.cc/g'
#  gcc -MM -I.. -I../.. -I../../instrument/stubs *.cc | \
#     sed -e 's/\.cc/.cc/g' -e 's/\.o:/.lo:/g'
#  gcc -MM -I.. -I../.. -I../../instrument/stubs slirp/*.cc | \
#     sed -e 's/^[^ ]/slirp\/&/g' -e 's/\.cc/.cc/g' -e 's/\.o:/.lo:/g'
#
# This means that every source file is listed twice, once with a .o rule
# and then again with an identical .lo rule.  The .lo rules are used when
# building plugins.
###########################################
e1000.o: e1000.cc ../iodev.h ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../param_names.h \
 ../../pc_system.h ../../bx_debug/debug.h ../../config.h ../../osdep.h \
 ../../memory/memory-bochs.h ../../gui/siminterface.h ../../gui/gui.h \
 ../pci.h netmod.h e1000.h
eth_fbsd.o: eth_fbsd.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
eth_linux.o: eth_linux.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
eth_null.o: eth_null.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
eth_slirp.o: eth_slirp.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h slirp/slirp.h ../../config.h slirp/slirp_config.h slirp/debug.h \
 slirp/libslirp.h slirp/compat.h ../../qemu-queue.h slirp/ip.h \
 slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h slirp/udp.h \
 slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h slirp/if.h \
 slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h slirp/libslirp.h
eth_socket.o: eth_socket.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
eth_tap.o: eth_tap.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
eth_tuntap.o: eth_tuntap.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
eth_vde.o: eth_vde.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
eth_vnet.o: eth_vnet.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h netutil.h
eth_win32.o: eth_win32.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
ne2k.o: ne2k.cc ../iodev.h ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../param_names.h \
 ../../pc_system.h ../../bx_debug/debug.h ../../config.h ../../osdep.h \
 ../../memory/memory-bochs.h ../../gui/siminterface.h ../../gui/gui.h \
 ../pci.h ne2k.h netmod.h
netmod.o: netmod.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h \
 ../../gui/siminterface.h netmod.h
netutil.o: netutil.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../pc_system.h netmod.h netutil.h
pcipnic.o: pcipnic.cc ../iodev.h ../../bochs.h ../../config.h \
 ../../osdep.h ../../gui/paramtree.h ../../logio.h \
 ../../instrument/stubs/instrument.h ../../misc/bswap.h ../../plugin.h \
 ../../extplugin.h ../../param_names.h ../../pc_system.h \
 ../../bx_debug/debug.h ../../config.h ../../osdep.h \
 ../../memory/memory-bochs.h ../../gui/siminterface.h ../../gui/gui.h
slirp/arp_table.o: slirp/arp_table.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/bootp.o: slirp/bootp.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h
slirp/cksum.o: slirp/cksum.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h
slirp/compat.o: slirp/compat.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/dnssearch.o: slirp/dnssearch.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/if.o: slirp/if.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h \
 ../iodev.h ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../param_names.h \
 ../../pc_system.h ../../bx_debug/debug.h ../../osdep.h \
 ../../memory/memory-bochs.h ../../gui/siminterface.h ../../gui/gui.h
slirp/ip_icmp.o: slirp/ip_icmp.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/ip_input.o: slirp/ip_input.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/ip_output.o: slirp/ip_output.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/mbuf.o: slirp/mbuf.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h
slirp/misc.o: slirp/misc.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h
slirp/sbuf.o: slirp/sbuf.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h
slirp/slirp.o: slirp/slirp.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h \
 ../iodev.h ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../param_names.h \
 ../../pc_system.h ../../bx_debug/debug.h ../../osdep.h \
 ../../memory/memory-bochs.h ../../gui/siminterface.h ../../gui/gui.h
slirp/socket.o: slirp/socket.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/tcp_input.o: slirp/tcp_input.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/tcp_output.o: slirp/tcp_output.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/tcp_subr.o: slirp/tcp_subr.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/tcp_timer.o: slirp/tcp_timer.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/tftp.o: slirp/tftp.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h
slirp/udp.o: slirp/udp.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h
e1000.lo: e1000.cc ../iodev.h ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../param_names.h \
 ../../pc_system.h ../../bx_debug/debug.h ../../config.h ../../osdep.h \
 ../../memory/memory-bochs.h ../../gui/siminterface.h ../../gui/gui.h \
 ../pci.h netmod.h e1000.h
eth_fbsd.lo: eth_fbsd.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
eth_linux.lo: eth_linux.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
eth_null.lo: eth_null.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
eth_slirp.lo: eth_slirp.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h slirp/slirp.h ../../config.h slirp/slirp_config.h slirp/debug.h \
 slirp/libslirp.h slirp/compat.h ../../qemu-queue.h slirp/ip.h \
 slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h slirp/udp.h \
 slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h slirp/if.h \
 slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h slirp/libslirp.h
eth_socket.lo: eth_socket.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
eth_tap.lo: eth_tap.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
eth_tuntap.lo: eth_tuntap.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
eth_vde.lo: eth_vde.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
eth_vnet.lo: eth_vnet.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h netutil.h
eth_win32.lo: eth_win32.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../pc_system.h \
 netmod.h
ne2k.lo: ne2k.cc ../iodev.h ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../param_names.h \
 ../../pc_system.h ../../bx_debug/debug.h ../../config.h ../../osdep.h \
 ../../memory/memory-bochs.h ../../gui/siminterface.h ../../gui/gui.h \
 ../pci.h ne2k.h netmod.h
netmod.lo: netmod.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h \
 ../../gui/siminterface.h netmod.h
netutil.lo: netutil.cc ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../pc_system.h netmod.h netutil.h
pcipnic.lo: pcipnic.cc ../iodev.h ../../bochs.h ../../config.h \
 ../../osdep.h ../../gui/paramtree.h ../../logio.h \
 ../../instrument/stubs/instrument.h ../../misc/bswap.h ../../plugin.h \
 ../../extplugin.h ../../param_names.h ../../pc_system.h \
 ../../bx_debug/debug.h ../../config.h ../../osdep.h \
 ../../memory/memory-bochs.h ../../gui/siminterface.h ../../gui/gui.h
slirp/arp_table.lo: slirp/arp_table.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/bootp.lo: slirp/bootp.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h
slirp/cksum.lo: slirp/cksum.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h
slirp/compat.lo: slirp/compat.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/dnssearch.lo: slirp/dnssearch.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/if.lo: slirp/if.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h \
 ../iodev.h ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../param_names.h \
 ../../pc_system.h ../../bx_debug/debug.h ../../osdep.h \
 ../../memory/memory-bochs.h ../../gui/siminterface.h ../../gui/gui.h
slirp/ip_icmp.lo: slirp/ip_icmp.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/ip_input.lo: slirp/ip_input.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/ip_output.lo: slirp/ip_output.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/mbuf.lo: slirp/mbuf.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h
slirp/misc.lo: slirp/misc.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h
slirp/sbuf.lo: slirp/sbuf.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h
slirp/slirp.lo: slirp/slirp.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h \
 ../iodev.h ../../bochs.h ../../config.h ../../osdep.h \
 ../../gui/paramtree.h ../../logio.h ../../instrument/stubs/instrument.h \
 ../../misc/bswap.h ../../plugin.h ../../extplugin.h ../../param_names.h \
 ../../pc_system.h ../../bx_debug/debug.h ../../osdep.h \
 ../../memory/memory-bochs.h ../../gui/siminterface.h ../../gui/gui.h
slirp/socket.lo: slirp/socket.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/tcp_input.lo: slirp/tcp_input.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/tcp_output.lo: slirp/tcp_output.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/tcp_subr.lo: slirp/tcp_subr.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/tcp_timer.lo: slirp/tcp_timer.cc slirp/slirp.h ../../config.h \
 slirp/slirp_config.h slirp/debug.h slirp/libslirp.h slirp/compat.h \
 ../../qemu-queue.h slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h \
 slirp/tcp_timer.h slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h \
 slirp/socket.h slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h \
 slirp/tftp.h
slirp/tftp.lo: slirp/tftp.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h
slirp/udp.lo: slirp/udp.cc slirp/slirp.h ../../config.h slirp/slirp_config.h \
 slirp/debug.h slirp/libslirp.h slirp/compat.h ../../qemu-queue.h \
 slirp/ip.h slirp/tcp.h slirp/tcp_var.h slirp/tcpip.h slirp/tcp_timer.h \
 slirp/udp.h slirp/ip_icmp.h slirp/mbuf.h slirp/sbuf.h slirp/socket.h \
 slirp/if.h slirp/main.h slirp/misc.h slirp/bootp.h slirp/tftp.h
